package cate.game.role.task.guide.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdGuide;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "开启某些页面过 の 请求")
public class OpenPageReq implements MsgInput {
    @NoteField(value = "页面类型")
    public int type;


    @Override
    public MsgConfig conf() {
        return MsgIdGuide.OPENED_VIP_MALL_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getHistory().action.openPage(type);
    }
}
